package com.huishu.goods.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @ClassName：AssistantWebMvcConfigurationSupport
 * @Author: ljj
 * @Date: 2022/6/22 17:30
 */
@Component
public class WebMvcConfigurationSupport implements WebMvcConfigurer {
    @Autowired
    private JwtHandlerInterceptor jwtHandlerInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(jwtHandlerInterceptor);
    }
}
